script(type="text/javascript", src="/javascripts/jquery-1.7.2.min.js")
script(type="text/javascript")$(document).ready(function(){$("#button1").click(function(){$.ajax({type:'POST',url:'/dologin',data:{name:$("#name").val(),email:$("#email").val(),age:$("#age").val()},dataType:'json',success:function(data){alert(data.name+'--'+data.email+'--'+data.age);},error:function(){alert('error');}});});})

form
p Name
input(type="text", name="name", id="name")
p Email
input(type="email", name="email", id="email")
p Age
input(type="number", name="age", id="age")
p
input(type="button" id="button1" value="提交")